package app

import (
	"testPaper/model"
	"time"
)

type WxUserTo struct {
	Telephone        string `json:"telephone"`
	TelephoneCompany string `json:"telephone_company"`
	CreatedAt        time.Time
	UpdatedAt        time.Time
	UserTime         time.Time
}

func WxUserDot(wxUser model.WxUser) WxUserTo {
	return WxUserTo{
		Telephone:        wxUser.Telephone,
		TelephoneCompany: wxUser.CompanyPhone,
		CreatedAt:        wxUser.CreatedAt,
		UpdatedAt:        wxUser.UpdatedAt,
		UserTime:         wxUser.UserTime,
	}
}
